package org.example.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * mq消息日志表
 * </p>
 *
 * @author libo
 * @since 2023-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mq_log")
public class MqLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 消息id
     */
    private String messageId;

    /**
     * 消费次数
     */
    private Integer reConsumeTimes;

    /**
     * 服务器节点
     */
    private String serverNode;

    /**
     * topic
     */
    private String topic;

    /**
     * gid
     */
    private String gid;

    /**
     * tag
     */
    private String tag;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 处理结果: 1-成功, 2-失败
     */
    private Integer result;

    /**
     * 报文
     */
    private String messageBody;

    /**
     * 时间
     */
    private Date createTime;


}
